package cn.kgc.spring08.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author: mosin
 * @version: v1.0  2022/12/6
 * 事务切面类
 */
//@Component
//@Aspect
//@Order(1)
public class SecurityAspect {

    @Before("execution(public * *(..))")  //  前置通知
    public  void beforeAdvice(){
        System.out.println("---------事务前置通知---------");
    }


}
